package com.jmgd.cjlx;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync;

@SpringBootApplication
@MapperScan("com.jmgd.cjlx.dao")
@EnableAsync
@EnableAspectJAutoProxy
public class CjlxApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(CjlxApplication.class, args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(CjlxApplication.class);
    }
}
